<template>
    <div class="not-found">
        <div class="img">
            <div class="btn">
                <el-button size="mini" @click="goHome()">返回首页</el-button>
                <el-button size="mini" type="primary" @click="goLastPage()">返回上一页</el-button>
            </div>
        </div>
    </div>
</template>

<script>
    export default {
        name: "notFound",
        methods: {
            //上一页
            goLastPage() {
                this.$router.back();
            },
            //返回首页
            goHome() {
                this.$router.push('/');
            }
        }
    }
</script>

<style lang="scss" scoped>
    .not-found {
        height: 100vh;
        width: 100%;
        background-color: white;

        .img {
            height: 100vh;
            width: 100%;
            background: url("../assets/not_found.png") no-repeat;
        }

        .btn {
            position: absolute;
            top: 40%;
            left: 40%;
        }
    }

</style>